#include "point.h"


namespace rt
{

Point::Point()
    :Array()
{
}

Point::Point(double a, double b, double c)
    :Array(a,b,c)
{
}

double Point::distance(Point p)
{
    return sqrt((p.data(0)-this->data(0))*(p.data(0)-this->data(0))+
                (p.data(1)-this->data(1))*(p.data(1)-this->data(1))+
                (p.data(2)-this->data(2))*(p.data(2)-this->data(2)));
}

bool Point::isEmpty()
{
    return this->data().empty();
}

}
